<?php
/** Main configuration of our Web application */
return array(
	'basePath' => realpath(dirname(__FILE__).DIRECTORY_SEPARATOR.'..'),
	'name' => 'huiyn',
	
	'defaultController' => 'index',
	
	'layout' => 'layouts',
	
	'preload' => array(),
	
	'import' => array(
		'application.models.*',
		'application.components.*'
	),
	
	'language' => 'zh_cn',
	
	'components' => array(
		'db' => array(
			'class' => 'CDbConnection',
			'connectionString' => 'mysql:host=localhost;dbname=huiyn',
			'username' => 'root',
			'password' => '123456',
			'charset' => 'UTF8'
		),
		
		'user' => array(
			'allowAutoLogin' => true,
			'loginUrl' => NULL
		),
		'urlManager' => array(
			'urlFormat' => 'path',
			'rules' => array(
				'admin/' => 'admin/'
			)
		),
		'errorHandler'=>array(
            'errorAction' => 'index/error',
        ),
		'cache'=>array(
            'class'=>'system.caching.CFileCache',
        )
	),
	
//	'image' => array(
//		'class' => 'application.extensions.image.CImageComponent',
//		// GD or ImageMagick
//		'driver' => 'GD'
//	)
);